<?php
header("Content-Type:text/html;charset=utf-8");
ini_set('display_errors', 1);
set_time_limit(0);
include_once dirname(dirname(dirname(__FILE__))) . '/mgtv_init.php';
$arr_dir = explode('|',str_replace(array('/','\\'), '|', __DIR__));
array_pop($arr_dir);
$str_dir = array_pop($arr_dir);
define('ORG_ID', $str_dir);
include_once dirname(dirname(dirname(__FILE__))) . '/'.ORG_ID.'/init.php';
include dirname(dirname(dirname(__FILE__))).'/models/c2_task_model.php';
include_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/np/np_string.php';
include_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/np/np_time.php';

ini_set('display_errors', 1);
set_time_limit(0);
// $live_info = array(
// 		'nns_live_id'=>'b0a23e749897d0a551e9c513575fab41',
// 		'nns_id'=>'b0a23e749897d0a551e9c513575fab42',
// 		'nns_name'=>'test_playbill_1',
// 		'nns_begin_time'=>'2016-09-19 10:10:10',
// 		'nns_time_len'=>'3600',
// 		'nns_summary'=>'test'
// );

$action ='UPDATE';
$action ='DELETE';

$item = array(
		'nns_live_id'=>'b0a23e749897d0a551e9c513575fab41',
		'nns_live_media_id'=>'71dee03b144c6a08a136363491270b75',
		'nns_playbill_id'=>'71dee03b144c6a08a136363491270b82',
		'nns_name'=>'test_playbill_1',
		'nns_begin_time'=>'2016-09-23 16:34:00',
		'nns_time_len'=>'000900',
		'nns_summary'=>'test'
);


$result= c2_task_model::add_playbill_v2($item,$action,ORG_ID);
var_dump($result);